# /etc/csh.login: This file contains login defaults used by csh and tcsh. # $Thanks 2> http://www.grymoire.com/Unix/Csh.html # Set up some environment variables: #source ~/.complete if ($?prompt) then umask 022 set cdpath = ( /var/spool ) set notify set history = 1000 set savehist = 500 setenv MANPATH /usr/local/man:/usr/man:/usr/X11R6/man setenv MINICOM "-c on" setenv HOSTNAME "`uname -n`" setenv LESS "-M" setenv LESSOPEN "|lesspipe.sh %s" setenv WINDOWMANAGER "fvwm-themes-start" setenv DOOMWADDIR "/usr/local/games" set path = ( $path /usr/X11R6/bin /usr/games $HOME/bin /usr/local/games ) endif # If the user doesn't have a .inputrc, use the one in /etc. if (! -r "$HOME/.inputrc") then setenv INPUTRC /etc/inputrc endif # I had problems with the backspace key installed by 'tset', but you might want # to try it anyway, instead to the 'setenv term.....' below it. # eval `tset -sQ "$term"` setenv term linux # if ! $?TERM setenv TERM linux # Set to "linux" for unknown term type: if ("$TERM" == "") setenv TERM linux if ("$TERM" == "unknown") setenv TERM linux # Set default POSIX locale: setenv LC_ALL POSIX setenv traditional_complete alias cls 'clear' alias lu 'ls -hula' alias tarunpack 'tar -xvf' alias bz2unpack 'tar -jxvf' # Set the default shell prompt: printf "\n\n____----------------_____\n\n" if (-x "/usr/bin/fortune") then `testout` endif printf "\n-----_________________-----\n\n" set prompt = "\[%d %t %y\]\n$TERM. \[`uname -vmr`\]\n\[%n@$HOSTNAME\]:%~%# " # Set up the LS_COLORS environment variable for color ls output: #eval `dircolors -c` # Notify user of incoming mail. This can be overridden in the user's # local startup file (~/.login) #biff y # Append any additional csh scripts found in /etc/profile.d/: [ -d /etc/profile.d ] if ($status == 0) then set nonomatch foreach file ( /etc/profile.d/*.csh ) [ -x $file ] if ($status == 0) then source $file endif end unset file nonomatch endif